﻿using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Mongo
{
    [Collection("wx_request_log")]
    public class WxRequestLog : MongoBaseModel
    {

        /// <summary>
        /// 请求地址
        /// </summary>
        [Field(fieldName: "url")]
        public string Url { get; set; } = String.Empty;

        [Field(fieldName: "post_data")]
        public string PostData { get; set; } = string.Empty;

        [Field(fieldName: "request_method")]
        public string RequestMethod { get; set; } = string.Empty;

        /// <summary>
        /// 返回结果
        /// </summary>
        [Field(fieldName: "result")]
        public string Result { get; set; } = string.Empty;

        [Field(fieldName: "api_name")]
        public string ApiName { get; set; } = string.Empty;

        /// <summary>
        /// 耗时
        /// </summary>
        [Field(fieldName:"used_time")]
        public long UsedTime { get; set; }


    }
}
